﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClaimingTask.aspx.cs" Inherits="BasePages_UnClaimTask" %>
<%@ Register Assembly="YYWebControl" Namespace="YYWebControl.YYSimpleCalendar" TagPrefix="YYWebControl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <LINK href="../CSS/hfmanger.css" type="text/css" rel="stylesheet">
</head>
<body >
    <form id="form1" runat="server">
        <table  style="width: 100%">
            <tr>
                <td align="left" class="toolbar" colspan="3" style="height: 23px" valign="middle">
       <asp:Image ID="Image1" runat="server" ImageUrl="../images/rss_2.gif" /><strong>未认领任务</strong></td>
            </tr>
            <tr>
                <td align="left"  colspan="3" class="blackbar" valign="middle">
                </td>
            </tr>
            <tr>
                <td align="center"colspan="3" style="height: 15px" valign="middle">
                    <table style="width: 98%">
                        <tr>
                            <td class=listContent>
                  <asp:CheckBox ID="cbxWorkflowCaption" runat="server" Text="业务名:" /><asp:TextBox ID="tbxFlowInsCaption" runat="server" Width="131px"></asp:TextBox><asp:CheckBox ID="cbxDatetime" runat="server" Text="到达时间：从" /><YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar1" runat="server" />
                    到<YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar2" runat="server" />
                   <asp:ImageButton ID="ibtnSearch" runat="server" Height="20px" ImageUrl="../images/查询.gif"
                        Width="39px" OnClick="ImageButton1_Click" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="left" class="blackbar" valign="middle" colspan="3">
                    &nbsp;
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/0.ico" />
                    正常任务&nbsp;&nbsp;&nbsp;&nbsp; 
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/images/5.ico" />
                    指派或退回的任务</td>
            </tr>
            <tr>
                <td colspan="3" align="center" valign="top">
                 <table width="98%">
                                <tr>
                                    <td  class="listContent">
                    <asp:GridView ID="gvClaimingTask" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" Width="100%"
                        PageSize="20"  OnRowCommand="gvClaimingTask_RowCommand" GridLines="None" 
                                            OnRowDataBound="gvClaimingTask_RowDataBound" EnableModelValidation="True">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="Black" />
                        <Columns>
                           
                             <asp:ImageField DataImageUrlField="status" DataImageUrlFormatString="../images/{0}.ico">
                            </asp:ImageField>
                            <asp:BoundField DataField="WorkFlowNo" HeaderText="流程编号" >
                                <ItemStyle Width="100px" />
                                
                            </asp:BoundField>
                            <asp:HyperLinkField DataNavigateUrlFields="WorkTaskInstanceId,OperatorInstanceId" DataTextField="FlowInstanceCaption"
                                HeaderText="业务名" DataNavigateUrlFormatString="WorkTaskCtrlPage.aspx?WorkTaskInstanceId={0}&amp;OperatorInstanceId={1}" Target="_blank" >
                                <ItemStyle Width="200px" />
                            </asp:HyperLinkField>
                           
                            <asp:BoundField DataField="TaskCaption" HeaderText="任务名" >
                            <ItemStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="提交人" DataField="pOperatedDes" >
                                <ItemStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="taskStartTime" HeaderText="到达时间">
                            <ItemStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Priority" HeaderText="优先级">
                                <HeaderStyle Width="100px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                <ItemStyle Width="50px" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="claimtask"
                                        Text="认领" CommandArgument='<%# Eval("WorkTaskInstanceId")+","+Eval("OperatorInstanceId") %>' OnClick="LinkButton1_Click"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:HyperLinkField HeaderText="查看" Text="流程图" 
                                DataNavigateUrlFormatString="WorkflowMap.aspx?workflowId={0}&amp;workflowInstanceId={1}" 
                                DataNavigateUrlFields="workflowId,workflowInstanceId" Target="_blank">
                                <ItemStyle Width="70px" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="TaskInsDescription" HeaderText="备注">
                                <ItemStyle Width="100px" />
                            </asp:BoundField>
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle ForeColor="White" HorizontalAlign="Center" BackColor="#2461BF" />
                        <HeaderStyle  Height="15px" CssClass="gridHead" Font-Bold="False" />
                        <AlternatingRowStyle BackColor="White" />
                        <EmptyDataRowStyle Height="15px" />
                        
                    </asp:GridView>
                                    </td></tr>
                                    </table>
                </td>
            </tr>
        </table>

    </form>
</body>
</html>
